﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="show.aspx.cs" Inherits="WebApplication2.show" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>

             <asp:Button ID="Button2" runat="server" Text="添加" Width="120px" OnClick="Button2_Click" />
             <br />

             <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Height="452px" Width="1049px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="password" HeaderText="密码" />
                <asp:BoundField DataField="name" HeaderText="姓名" />
                <asp:BoundField DataField="age" HeaderText="年龄" />
                <asp:BoundField DataField="sex" HeaderText="性别" />
                <asp:BoundField DataField="birthtime" HeaderText="生日" />
                <asp:BoundField DataField="addres" HeaderText="家庭住址" />
                <asp:BoundField DataField="classes" HeaderText="班级" />
                <asp:BoundField DataField="tel" HeaderText="电话" />
                <asp:BoundField DataField="zhuanye" HeaderText="专业" />
                <asp:BoundField DataField="graduation" HeaderText="在校情况" />
                <asp:BoundField DataField="sno" HeaderText="学号" />
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:Button ID="Button3" runat="server" CommandArgument='<%# Eval("sno") %>' OnCommand="Button3_Command" Text="删除" />
                        <asp:Button ID="Button4" runat="server" CommandArgument='<%# Convert.ToInt32(Eval("sno")) %>' OnCommand="Button4_Command" Text="修改" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        </div>
    </form>
</body>
</html>
